package com.aiti.lulian.flow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * description:
 * auth fcb
 * date 2025-09-04 09:44
 **/
@ApiModel(value = "流程审批过程记录",description = "")
@TableName("card_flow_process")
@Data
public class CardFlowProcess {

    /** 主键 */
    @ApiModelProperty(name = "主键",notes = "")
    @TableId(value = "base_id",type = IdType.INPUT)
    private String baseId ;

    /** 流程实例id */
    @ApiModelProperty(name = "流程实例id",notes = "")
    @TableField(value = "flow_instance_id")
    private String flowInstanceId ;

    /** 节点名称 */
    @ApiModelProperty(name = "节点名称",notes = "")
    @TableField(value = "process_node_name")
    private String processNodeName ;

    /** 节点key */
    @ApiModelProperty(name = "节点key",notes = "")
    @TableField(value = "process_node_key")
    private String processNodeKey ;

    /** 当前节点审批人id */
    @ApiModelProperty(name = "当前节点审批人id",notes = "")
    @TableField(value = "audit_user_id")
    private String auditUserId ;

    /** 开始时间 */
    @ApiModelProperty(name = "开始时间",notes = "")
    @TableField(value = "start_time")
    private Date startTime ;

    /** 结束时间 */
    @ApiModelProperty(name = "结束时间",notes = "")
    @TableField(value = "end_time")
    private Date endTime ;

    /** 节点状态。0：待审批，1：已审批，2：驳回 */
    @ApiModelProperty(name = "节点状态。0：待审批，1：已审批，2：驳回",notes = "")
    @TableField(value = "node_status")
    private Integer nodeStatus ;

    /** 备注。可填写驳回原因 */
    @ApiModelProperty(name = "备注。可填写驳回原因",notes = "")
    @TableField(value = "remark")
    private String remark ;

    @ApiModelProperty(name = "排序",notes = "")
    @TableField(value = "sort")
    private Integer sort;
}
